<!DOCTYPE html>
<html>
    <head>
        <title>click事件</title>
        <meta charset="utf-8">
    </head>
<body>
        <form name = button>
            <input type = "button" value = "上一页" onClick = "history.back()">
            <input type = "button" value = "新浪网" onClick = "location='http://www.sina.com'">
            <input type = "button" value = "下一页" onClick = "history.forward()">
        </form>
    </body>
</html>